package com.guonl.controller;

import com.guonl.domain.User;
import com.guonl.kms.MyMvcReqParam;
import com.guonl.kms.MyMvcReqParam2;
import lombok.Data;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@ResponseBody
@Controller
@RequestMapping(value = "/kms")
public class KmsDemoController {

    @RequestMapping("/param/test")
    public ResponseEntity paramTest(@MyMvcReqParam2("111") String name) {
        return ResponseEntity.ok(name);
    }

    @Data
    static class ParamVO {

        @MyMvcReqParam(value = "张三")
        private String name;

        @MyMvcReqParam(value = "111222333")
        private String phone;

    }


}
